home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Aztec C 5.0a disk 1.adf / include / libraries / mathffp.h < prev    next >
C/C++ Source or Header  |  1989-10-26  |  1KB  |  62 lines

  1. #ifndef    LIBRARIES_MATHFFP_H
  2. #define    LIBRARIES_MATHFFP_H
  3. #ifndef EXEC_TYPES_H
  4. #include "exec/types.h"
  5. #endif
  6. #ifndef    PI
  7. #define    PI    ((float)    3.141592653589793)
  8. #endif
  9. #define    TWO_PI    (((float)    2)    *    PI)
  10. #define    PI2    (PI/    ((float)    2))
  11. #define    PI4    (PI/    ((float)    4))
  12. #ifndef    E
  13. #define    E    ((float)    2.718281828459045)
  14. #endif
  15. #define    LOG10    ((float)    2.302585092994046)
  16. #define    FPTEN    ((float)    10.0)
  17. #define    FPONE    ((float)    1.0)
  18. #define    FPHALF    ((float)    0.5)
  19. #define    FPZERO    ((float)    0.0)
  20. #define    trunc(x)    ((int)    (x))
  21. #define    round(x)    ((int)    ((x)    +    0.5))
  22. #define    itof(i)    ((float)    (i))
  23. #define    fabs    SPAbs
  24. #define    floor    SPFloor
  25. #define    ceil    SPCeil
  26. #define    tan    SPTan
  27. #define    atan    SPAtan
  28. #define    cos    SPCos
  29. #define    acos    SPAcos
  30. #define    sin    SPSin
  31. #define    asin    SPAsin
  32. #define    exp    SPExp
  33. #define    pow(a,b)    SPPow((b),(a))
  34. #define    log    SPLog
  35. #define    log10    SPLog10
  36. #define    sqrt    SPSqrt
  37. #define    sinh    SPSinh
  38. #define    cosh    SPCosh
  39. #define    tanh    SPTanh
  40. int    SPFix();
  41. float    SPFlt();
  42. int    SPCmp();
  43. int    SPTst();
  44. float    SPAbs();
  45. float    SPFloor();
  46. float    SPCeil();
  47. #ifndef    abs
  48. float    abs();
  49. #endif
  50. float    SPNeg();
  51. float    SPAdd();
  52. float    SPSub();
  53. float    SPMul();
  54. float    SPDiv();
  55. float    SPAsin(),    SPAcos(),    SPAtan();
  56. float    SPSin(),    SPCos(),    SPTan(),    SPSincos();
  57. float    SPSinh(),    SPCosh(),    SPTanh();
  58. float    SPExp(),    SPLog(),    SPLog10(),    SPPow();
  59. float    SPSqrt(),    SPFieee();
  60. float    afp(),    dbf();
  61. #endif
  62.